package cn.tedu.myioc2;

import org.junit.Test;

public class Test1 {
    @Test
    public void ioc() throws Exception {
        MyIOC my = new MyIOC();
        Hello h = (Hello) my.getBean("hello");
        System.out.println(h);
        User u = (User) my.getBean("user");
        System.out.println(u);
    }
}
